#include <iostream>
#include <unistd.h>
#include <signal.h>
#include <unistd.h>

void headler(int signo)
{ 
    std::cout << "获得一个" << signo << "信号" << std::endl;
}

static void Usage(const std::string &proc)
{
    std::cout << "\nUsage: " << proc << " -signumber process\n" << std::endl;
}

int main(int argc, char *argv[])
{
    if (argc!=3)
    {
        Usage(argv[0]);
        exit(0);
    }
    
    int signumber = std::stoi(argv[1]+1);
    int processpid = std::stoi(argv[2]);

    kill(processpid, signumber);

    return 0;
}